import React from 'react';
import { Button, type ButtonProps } from 'antd';
import './PrimaryButton.css';  // 同级导入

interface PrimaryButtonProps extends ButtonProps {
  children: React.ReactNode;
}

export const PrimaryButton: React.FC<PrimaryButtonProps> = ({
  children,
  className = '',
  ...props
}) => {
  return (
    <Button
      className={`primary-button ${className}`}
      type="primary"
      {...props}
    >
      {children}
    </Button>
  );
};